{include file="header.html"}

<div class="page-header">
	<h6>
		退货、退款审核
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			退货、退款审核
		</small>
	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="order" />
<input type="hidden" name="act" id="act" value="return_goods" />
<input type="text" class="input-medium" placeholder="id" name="id" value="" /> 
<input type="text" class="input-medium" placeholder="用户名" name="keyword" value="{$keyword}" /> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>订单号</th>
			<th>退货(款)人</th>
			<th>类型</th>
			<th>金额</th>
			<th>状态</th>
			<th>申请时间</th>
			<th>审核备注</th>
			<th>审核时间</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row}
		<tr>
			<td>{$row.id}</td>
			<td><a href="?app=order&act=edit&id={$row.order_id}" target="_blank">{$row.order_sn}</a></td>
			<td><a href="?app=order&act=return_edit&id={$row.member_id}" title="{$row.name}">{if $row.name==''}{$row.real_name}{else}{$row.name}{/if}</a></td>
			<td>{if $row.type==1} 退款 {else} 退货 {/if}</td>
			<td>{$row.price}</td>
			<td>{if $row.status==1} 同意 {elseif $row.status==-1} 不同意 {else}未审核{/if}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d"}</td>
			<td>{$row.audit_memo}</td>
			<td>{if $row.audit_time}{$row.audit_time|date_format:"%Y-%m-%d"}{/if}</td>
			<td>
				<a href="?app=order&act=return_edit&id={$row.id}">
					<button type="button" class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
					</button>
				</a>
				<a href="?app=order&act=return_goods_delete&id={$row.id}&order_id={$row.order_id}" class="delete">
					<button type="button" class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
					</button>
				</a>
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}